package com.Abstract1;

import javax.sound.midi.Soundbank;

/**
 * Time    : 2023/3/19 9:33
 * Author  : 王摇摆
 * FileName: Template.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public abstract class Template {
    private String title = "《我的爸爸》";
    private String one = "请介绍一下你的爸爸，说说你的爸爸有多好，有多牛。";
    private String last = "我爸爸真棒，有这样的爸爸爽爆了。";

    public void write(){
        System.out.println(title);
        System.out.println(one);
        //各说各的好
        System.out.println(writeMain());
        System.out.println(last);
    }

    protected abstract String writeMain();
}
